package cn.stylefeng.guns.sys.modular.system.controller;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.core.exception.enums.BizExceptionEnum;
import cn.stylefeng.guns.sys.core.util.DateUtil;
import cn.stylefeng.guns.sys.modular.system.entity.BtyZxGhsLock;
import cn.stylefeng.guns.sys.modular.system.entity.Mdzx;
import cn.stylefeng.guns.sys.modular.system.mapper.MdzxMapper;
import cn.stylefeng.guns.sys.modular.system.model.params.*;
import cn.stylefeng.guns.sys.modular.system.model.result.*;
import cn.stylefeng.guns.sys.modular.system.service.BtyZxGhsLockService;
import cn.stylefeng.guns.sys.modular.system.service.MdzxService;
import cn.stylefeng.guns.sys.modular.system.service.ZxTzqkService;
import cn.stylefeng.roses.core.base.controller.BaseController;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import cn.stylefeng.roses.core.util.ToolUtil;
import cn.stylefeng.roses.kernel.model.exception.ServiceException;
import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;


/**
 * 门店装修表控制器
 *
 * @author jiangge
 * @Date 2020-11-02 09:09:43
 */
@Controller
@RequestMapping("/mdzx")
public class MdzxController extends BaseController {

    private String PREFIX = "/modular/system/mdzx";

    @Autowired
    private MdzxService mdzxService;

    @Autowired
    private ZxTzqkService zxTzqkService;

    /**
     * 跳转到主页面
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    @RequestMapping("")
    public String index() {
        return PREFIX + "/mdzx.html";
    }

    @RequestMapping("index2")
    public String index2() {
        return PREFIX + "/mdzx2.html";
    }


    @RequestMapping("/dz")
    public String dz() {
        return PREFIX + "/mdzxdz.html";
    }

    /**
     * 新增页面
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    @RequestMapping("/add")
    public String add() {
        return PREFIX + "/mdzx_add.html";
    }

    /**
     * 编辑页面
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    @RequestMapping("/edit")
    public String edit() {
        return PREFIX + "/mdzx_edit.html";
    }

    /**
     * 编辑页面
     *
     * @author jiangge
     * param  btyZxMdzxId 被复制的门店id
     * @Date 2020-11-02
     */
    @RequestMapping("/copy")
    public String copy(Model model, Long btyZxMdzxId) {
        model.addAttribute("copiedBtyZxMdzxId", btyZxMdzxId);
        return PREFIX + "/mdzx_copy.html";
    }

    /**
     * 投资情况-点击金额时弹出计算器页面
     *
     * @author jiangge
     * param  btyZxMdzxId 被复制的门店id
     * @Date 2020-11-02
     */
    @RequestMapping("/jinejisuan")
    public String jinejisuan(Model model, ZxTzqkParam mdzxParam) {
        if (mdzxParam.getJine() == null) {
            mdzxParam.setJine(BigDecimal.ZERO.setScale(0));
        }
        model.addAttribute("param", mdzxParam);
        return PREFIX + "/mdzx_jinejisuan.html";
    }

    /**
     * 编辑页面
     *
     * @author jiangge
     * param  btyZxMdzxId 被复制的门店id
     * @Date 2020-11-02
     */
    @RequestMapping("/tzqkMingXi")
    public String tzqkMingXi() {
        return PREFIX + "/mdzx_tzqkMingXi.html";
    }

    /**
     * 新增接口
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    @RequestMapping("/addItem")
    @ResponseBody
    public ResponseData addItem(MdzxParam mdzxParam) {
        ResponseData responseData = this.mdzxService.add(mdzxParam);
        return responseData;
    }

    /**
     * 编辑接口
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    @RequestMapping("/editItem")
    @ResponseBody
    public ResponseData editItem(MdzxParam mdzxParam) {
        ResponseData data = this.mdzxService.update(mdzxParam);
        return data;
    }

    /**
     * 投资预算-复制
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    @RequestMapping("/copyItem")
    @ResponseBody
    public ResponseData copyItem(MdzxParam mdzxParam) {

        ResponseData data = this.mdzxService.copyZxYuSuan(mdzxParam);
        return data;
    }

    /**
     * 删除接口
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    @RequestMapping("/delete")
    @ResponseBody
    public ResponseData delete(MdzxParam mdzxParam) {
        ResponseData data = this.mdzxService.delete(mdzxParam);
        return data;
    }

    /**
     * 供货商锁定或者解锁
     *
     * @author
     * @Date
     */
    @RequestMapping("/ghsLock")
    @ResponseBody
    public ResponseData ghsLock(Long btyZxMdzxId) {

        ResponseData data = this.mdzxService.getGhsLock(btyZxMdzxId);
        return data;

    }

    /**
     * 查看详情接口
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    @RequestMapping("/detail")
    @ResponseBody
    public ResponseData detail(MdzxParam mdzxParam) {
        Mdzx detail = this.mdzxService.getById(mdzxParam.getBtyZxMdzxId());
        return ResponseData.success(detail);
    }

    /**
     * 查询列表
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    @ResponseBody
    @RequestMapping("/list")
    public LayuiPageInfo list(MdzxParam mdzxParam) {
        return this.mdzxService.findPageBySpec(mdzxParam);
    }

    /**
     * 查询对账列表
     *
     * @author
     * @Date 2022-02-09
     */
    @ResponseBody
    @RequestMapping("/listDz")
    public LayuiPageInfo listDz(MdzxParam mdzxParam) {
        return this.mdzxService.findPageBySpecDz(mdzxParam);
    }

    /**
     * 查询列表
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    @ResponseBody
    @RequestMapping("/mdzxList")
    public ResponseData mdzxList(MdzxParam mdzxParam) {
        List<Map<String, Object>> maps = this.mdzxService.mdzxList(mdzxParam);
        return ResponseData.success(maps);
    }

    @ResponseBody
    @RequestMapping("/ghsList")
    public ResponseData ghsList(MdzxParam mdzxParam) {
        List<Map<String, Object>> maps = this.mdzxService.ghsList(mdzxParam);
        return ResponseData.success(maps);
    }

    // 投资情况表导出excel
    @RequestMapping("/listExport")
    public ResponseEntity<byte[]> exportExcel(HttpServletRequest request, HttpServletResponse response, Long btyZxMdzxId) {
        return this.mdzxService.exportExcel(request, response, btyZxMdzxId);
    }

    // 投资情况表导出excel-带单位预估值和百分比的导出
    @RequestMapping("/listExport2")
    public ResponseEntity<byte[]> exportExcel2(HttpServletRequest request, HttpServletResponse response, Long btyZxMdzxId) {
        return this.mdzxService.exportExcel2(request, response, btyZxMdzxId);
    }


    // 投资情况表导出excel-带公式
    @RequestMapping("/listExportWithGongshi")
    public ResponseEntity<byte[]> exportExcelWithGongshi(HttpServletRequest request, HttpServletResponse response, Long btyZxMdzxId) {
        return this.mdzxService.exportExcelWithGongshi(request, response, btyZxMdzxId);
    }


    /**
     * 跳转到投资情况展示页面
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    @RequestMapping("/investmentSituation")
    public String index1(Model model, MdzxParam param) {
        Mdzx mdzx = this.mdzxService.getById(param.getBtyZxMdzxId());
        model.addAttribute("mdInfo", mdzx);
        return PREFIX + "/investmentSituation.html";
    }

    /**
     * 跳转到投资情况展示页面
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    @RequestMapping("/tzqk")
    public String tzqk(Model model, MdzxParam param) {
        Mdzx mdzx = this.mdzxService.getById(param.getBtyZxMdzxId());
        model.addAttribute("mdInfo", mdzx);
        return PREFIX + "/tzqk.html";
    }

    /**
     * 跳转到甲供材展示页面
     */
    @RequestMapping("/jgc")
    public String jgc(Model model, MdzxParam param) {
        Mdzx mdzx = this.mdzxService.getById(param.getBtyZxMdzxId());
        model.addAttribute("mdInfo", mdzx);
        return PREFIX + "/jgc.html";
    }

    /**
     * 跳转到投资情况展示页面(百分比)
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    @RequestMapping("/tzqk2")
    public String tzqk2(Model model, MdzxParam param) {
        Mdzx mdzx = this.mdzxService.getById(param.getBtyZxMdzxId());
        //单位面积预估值
        BigDecimal unitYusuanHeji = BigDecimal.ZERO;
        mdzx.setUnitYusuanHeji(unitYusuanHeji);
        if (mdzx.getYujiTouzi().compareTo(BigDecimal.ZERO) != 0 && !StringUtils.isEmpty(mdzx.getMianji())) {
            mdzx.setUnitYusuanHeji(mdzx.getYujiTouzi().divide(new BigDecimal(mdzx.getMianji()), 2, BigDecimal.ROUND_UP));
        }

        model.addAttribute("mdInfo", mdzx);
        return PREFIX + "/tzqk2.html";
    }

    /**
     * 投资情况具体信息：所有成本明细及相关科目信息展示
     *
     * @param param
     * @return
     */

    @RequestMapping("/investmentSituationInfo")
    @ResponseBody
    public LayuiPageInfo lisst(MdzxParam param) {
        //查询列表数据
        List<ZxTzqkViewResult> tzqkInfoList = this.mdzxService.getInvestmentSituation(param.getBtyZxMdzxId());
        int total = tzqkInfoList.size();
        LayuiPageInfo layuiPageInfo = new LayuiPageInfo();
        layuiPageInfo.setData(tzqkInfoList);
        layuiPageInfo.setCount(total);
        return layuiPageInfo;
    }

    /**
     * 投资情况具体信息：所有成本明细及相关科目信息展示
     *
     * @param param
     * @return
     */

    @RequestMapping("/tzqkInfo")
    @ResponseBody
    public LayuiPageInfo tzqkInfo(MdzxParam param) {
        // 根据门店id同步投资情况
        ZxTzqkViewResult zxTzqkViewResult = new ZxTzqkViewResult();
        zxTzqkViewResult.setBtyZxMdzxId(param.getBtyZxMdzxId());
        zxTzqkService.onClickobtainAll(zxTzqkViewResult);

        //查询列表数据
        List<ZxTzqkViewResult> tzqkInfoList = this.mdzxService.getTzqk(param.getBtyZxMdzxId());
        int total = tzqkInfoList.size();
        LayuiPageInfo layuiPageInfo = new LayuiPageInfo();
        layuiPageInfo.setData(tzqkInfoList);
        layuiPageInfo.setCount(total);
        return layuiPageInfo;
    }

    /**
     * 甲供材信息
     *
     * @param param
     * @return
     */

    @RequestMapping("/jgcInfo")
    @ResponseBody
    public LayuiPageInfo jgcInfo(MdzxParam param) {
        //查询列表数据
        List<MdzxResult> jgcInfoList = this.mdzxService.listJgcDetail(param.getBtyZxMdzxId());
        int total = jgcInfoList.size();
        LayuiPageInfo layuiPageInfo = new LayuiPageInfo();
        layuiPageInfo.setData(jgcInfoList);
        layuiPageInfo.setCount(total);
        return layuiPageInfo;
    }

    /**
     * 门店复制
     * listMingxiDetail
     *
     * @param param
     * @return
     */

    @RequestMapping("/copyzx")
    @ResponseBody
    public ResponseData copyzx(MdzxParam param) {
        if (ToolUtil.isEmpty(param.getBtyZxMdzxId())) {
            throw new ServiceException(BizExceptionEnum.REQUEST_NULL);
        }
        ResponseData responseData = this.mdzxService.copyZx(param);
        return responseData;
    }

    /**
     * 门店复制
     *
     * @param param
     * @return
     */

    @RequestMapping("/copyYusn")
    @ResponseBody
    public ResponseData copyYusn(MdzxParam param) {
        if (ToolUtil.isEmpty(param.getBtyBrandId())) {
            throw new ServiceException(BizExceptionEnum.REQUEST_NULL);
        }
        return this.mdzxService.copyYusn(param);
    }


    /**
     * 修改预计投资
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    @RequestMapping("/editYujiTouzi")
    @ResponseBody
    public ResponseData editYujiTouzi(MdzxParam param) {
        return this.mdzxService.editYujiTouzi(param);
    }

    /**
     * 门店锁定
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    @RequestMapping("/yuSuanLockEdit")
    @ResponseBody
    public ResponseData yuSuanLockEdit(MdzxParam param) {
        return this.mdzxService.yusuanLockEdit(param);
    }

    /**
     * 门店锁定
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    @RequestMapping("/batchLock")
    @ResponseBody
    public ResponseData batchLock(MdzxParam param) {
        String ids = param.getIds();
        String[] idsArr = ids.split(",");
        for (String id : idsArr) {
            long btyZxMdzxId = Long.parseLong(id);
            param.setBtyZxMdzxId(btyZxMdzxId);
            this.mdzxService.yusuanLockEdit(param);
        }
        return ResponseData.success();
    }

    @RequestMapping("/lock")
    @ResponseBody
    public ResponseData lock(String records) {
        List<MdzxParam> params = JSONArray.parseArray(records, MdzxParam.class);
        return this.mdzxService.lock(params);
    }

    @RequestMapping("/export")
    public ResponseEntity<byte[]> export(HttpServletRequest request, HttpServletResponse response, MdzxParam param) {
        return this.mdzxService.exportMx(request, response, param);
    }

    /**
     * 门店装修凭证
     */
    @RequestMapping(value = "/confirmOk")
    @ResponseBody
    public ResponseData confirmOk(MdzxParam param) {
        String yaoma = param.getYaoma();
        String region = param.getRegion();
        String yhk = "";
        //通过大区获取获取银行卡号
        if (region.equals("301") | region.equals("302") | region.equals("305") | region.equals("308")) {
            yhk = "6226222304032720";
        } else if (region.equals("304") | region.equals("311")| region.equals("321")) {
            yhk = "6226222303301845";
        } else if (region.equals("303") | region.equals("306") | region.equals("307") | region.equals("309") | region.equals("312") | region.equals("315") | region.equals("318") | region.equals("319")) {
            yhk = "6226222303620277";
        } else if (region.equals("310") | region.equals("313") | region.equals("316") | region.equals("317") | region.equals("320")) {
            yhk = "6226222304032712";
        }
        //店面押金
        BigDecimal dmyj = BigDecimal.ZERO;
        //店长备用金
        BigDecimal dzbyj = BigDecimal.ZERO;
        //配送周转金
        BigDecimal pszzj = BigDecimal.ZERO;
        //意向金
        BigDecimal yxj = BigDecimal.ZERO;
        //前厅耗品
        BigDecimal qthp = BigDecimal.ZERO;
        //厨房用品
        BigDecimal cfyp = BigDecimal.ZERO;
        //办公设备
        BigDecimal bgsb = BigDecimal.ZERO;
        //电器设备
        BigDecimal dqsb = BigDecimal.ZERO;
        //厨具设备
        BigDecimal cjsb = BigDecimal.ZERO;
        //空调
        BigDecimal kt = BigDecimal.ZERO;
        //大厅设备
        BigDecimal dtsb = BigDecimal.ZERO;
        //设计费
        BigDecimal sjf = BigDecimal.ZERO;
        //转让费
        BigDecimal zrf = BigDecimal.ZERO;
        //装修费
        BigDecimal zxf = BigDecimal.ZERO;
        //拆除
        BigDecimal cc = BigDecimal.ZERO;
        //消防水改造电缆
        BigDecimal xfdl = BigDecimal.ZERO;
        //消防
        BigDecimal xf = BigDecimal.ZERO;
        //弱电
        BigDecimal rd = BigDecimal.ZERO;
        //电缆
        BigDecimal dl = BigDecimal.ZERO;
        //二消费用
        BigDecimal exfy = BigDecimal.ZERO;
        //发光字
        BigDecimal fgz = BigDecimal.ZERO;
        //二次消防
        BigDecimal ecxf = BigDecimal.ZERO;
        //拆除+围挡
        BigDecimal chaichu = BigDecimal.ZERO;
        //消防改造
        BigDecimal xfgz = BigDecimal.ZERO;
        //工程改造
        BigDecimal gcgz = BigDecimal.ZERO;
        //房租
        BigDecimal fz = BigDecimal.ZERO;
        //工资
        BigDecimal gz = BigDecimal.ZERO;
        //电费
        BigDecimal df = BigDecimal.ZERO;
        //水费
        BigDecimal sf = BigDecimal.ZERO;
        //宿舍房租及用品
        BigDecimal ssfz = BigDecimal.ZERO;
        //员工餐
        BigDecimal ygc = BigDecimal.ZERO;
        //配送进货
        BigDecimal psjh = BigDecimal.ZERO;
        //拓展费用
        BigDecimal tzfy = BigDecimal.ZERO;
        //工作服/围裙/帽子
        BigDecimal gzf = BigDecimal.ZERO;
        //零星用品
        BigDecimal lxyp = BigDecimal.ZERO;
        //搬运费/运费
        BigDecimal byf = BigDecimal.ZERO;
        //宽带款
        BigDecimal kdk = BigDecimal.ZERO;
        //差旅费
        BigDecimal clf = BigDecimal.ZERO;
        //试菜费用
        BigDecimal scfy = BigDecimal.ZERO;
        //车费
        BigDecimal cf = BigDecimal.ZERO;
        //其他费用
        BigDecimal qtfy = BigDecimal.ZERO;
        //排烟管道铺设
        BigDecimal pygd = BigDecimal.ZERO;
        //广告单、喷绘、等
        BigDecimal ggd = BigDecimal.ZERO;

        String yj = "";
        String[] yjs = null;

        String zxf1 = "";

        String[] zxf1s = null;

        String zdrq = param.getZdrq();
        //根据门店装修id获取投资情况科目明细
        List<ZxTzqkResult> list = mdzxService.mdList(param.getBtyZxMdzxId());
        for (ZxTzqkResult result : list) {
            String levelName = result.getSecondLevelName();
            if (levelName.equals("店面押金")) {
                dmyj = result.getJine();
                yj = result.getContent();
                yjs = yj.split("，");


            } else if (levelName.equals("店长备用金")) {
                dzbyj = result.getJine();
            } else if (levelName.equals("配送周转金")) {
                pszzj = result.getJine();
            } else if (levelName.equals("意向金")) {
                yxj = result.getJine();
            } else if (levelName.equals("前厅耗品")) {
                qthp = result.getJine();
            } else if (levelName.equals("厨房用品")) {
                cfyp = result.getJine();
            } else if (levelName.equals("办公设备")) {
                bgsb = result.getJine();
            } else if (levelName.equals("电器设备")) {
                dqsb = result.getJine();
            } else if (levelName.equals("厨具设备")) {
                cjsb = result.getJine();
            } else if (levelName.equals("空调")) {
                kt = result.getJine();
            } else if (levelName.contains("大厅设备")) {
                dtsb = result.getJine();
            } else if (levelName.equals("设计费")) {
                sjf = result.getJine();
            } else if (levelName.equals("转让费")) {
                zrf = result.getJine();
            } else if (levelName.contains("装修费")) {
                zxf = result.getJine();
                zxf1 = result.getContent();
                zxf1s = zxf1.split("，");
            } else if (levelName.equals("拆除")) {
                cc = result.getJine();
            } else if (levelName.equals("消防水改造电缆")) {
                xfdl = result.getJine();
            } else if (levelName.equals("消防")) {
                xf = result.getJine();
            } else if (levelName.equals("弱电")) {
                rd = result.getJine();
            } else if (levelName.equals("电缆")) {
                dl = result.getJine();
            } else if (levelName.equals("二消费用")) {
                exfy = result.getJine();
            } else if (levelName.equals("发光字")) {
                fgz = result.getJine();
            } else if (levelName.equals("二次消防")) {
                ecxf = result.getJine();
            } else if (levelName.equals("拆除+围挡")) {
                chaichu = result.getJine();
            } else if (levelName.equals("消防改造")) {
                xfgz = result.getJine();
            } else if (levelName.equals("工程改造")) {
                gcgz = result.getJine();
            } else if (levelName.equals("房租")) {
                fz = result.getJine();
            } else if (levelName.equals("工资")) {
                gz = result.getJine();
            } else if (levelName.equals("电费")) {
                df = result.getJine();
            } else if (levelName.equals("水费")) {
                sf = result.getJine();
            } else if (levelName.equals("宿舍房租及用品")) {
                ssfz = result.getJine();
            } else if (levelName.equals("员工餐")) {
                ygc = result.getJine();
            } else if (levelName.equals("配送进货")) {
                psjh = result.getJine();
            } else if (levelName.equals("拓展费用")) {
                tzfy = result.getJine();
            } else if (levelName.contains("工作服")) {
                gzf = result.getJine();
            } else if (levelName.equals("零星用品")) {
                lxyp = result.getJine();
            } else if (levelName.contains("搬运费")) {
                byf = result.getJine();
            } else if (levelName.equals("宽带款")) {
                kdk = result.getJine();
            } else if (levelName.equals("差旅费")) {
                clf = result.getJine();
            } else if (levelName.equals("试菜费用")) {
                scfy = result.getJine();
            } else if (levelName.equals("车费")) {
                cf = result.getJine();
            } else if (levelName.equals("其他费用")) {
                qtfy = result.getJine();
            } else if (levelName.equals("排烟管道铺设")) {
                pygd = result.getJine();
            } else if (levelName.contains("广告单")) {
                ggd = result.getJine();
            }
        }
        RestTemplate restTemplate = new RestTemplate();
        HttpHeaders headers = new HttpHeaders();
        MediaType type = MediaType.parseMediaType("application/json; charset=UTF-8");
        headers.setContentType(type);
        headers.add("trantype", "code"); // 档案翻译方式，枚举值为：编码请录入 code， 名称请录入 name， 主键请录入 pk
        headers.add("system", "001"); // 系统编码
        headers.add("usercode", "15253172037"); //用户名
        //密码md5加密
        headers.add("password", "514576f58a89767b46c1b44767a08f77");
        headers.add("Accept", MediaType.APPLICATION_JSON.toString());
        StringBuilder sb = new StringBuilder();
        sb.append("{\n" +
                "    \"voucher\":[\n" +
                "        {\n" +
                "            \"details\":[");
        //店面押金凭证
        if (dmyj.compareTo(BigDecimal.ZERO) == 1) {
            Pattern p = Pattern.compile("([1-9]\\d*\\.?\\d*)|(0\\.\\d*[1-9])");
            if (ToolUtil.isNotEmpty(yjs)) {
                for (String s : yjs) {
                    Matcher m = p.matcher(s);
                    String km = m.replaceAll("").trim();
                    //System.out.println("km:"+km);
                    String yajin = s.substring(km.length());
                    BigDecimal amount = BigDecimal.ZERO;
                    if (!yajin.contains("+")) {
                        amount = new BigDecimal(yajin).setScale(2, BigDecimal.ROUND_HALF_UP);
                    }
                    //System.out.println("金额:"+amount);
                    BigDecimal yajins = BigDecimal.ZERO;
                    if (km.equals("履约保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500032\"\n" + //履约保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.contains("宿舍押金+")) {
                        int count = DateUtil.appearNumber(km, "\\+");
                        yajin = s.substring(km.length() - count);
                        String amounts[] = yajin.split("\\+");
                        for (String amount1 : amounts) {
                            yajins = yajins.add(new BigDecimal(amount1).setScale(2, BigDecimal.ROUND_HALF_UP));
                        }
                        if (yajins.compareTo(BigDecimal.ZERO) == 1) {
                            sb.append("                {\n" +
                                    "                    \"ass\":[\n" +
                                    "                        {\n" +
                                    "                            \"checktypecode\":\"2\",\n" +
                                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                    "                        },\n" +
                                    "                        {\n" +
                                    "                            \"checktypecode\":\"73\",\n" +
                                    "                            \"checkvaluecode\":\"0600006\"\n" + //宿舍押金辅助核算编码
                                    "                        }\n" +
                                    "                    ],\n" +
                                    //借方科目
                                    "                    \"creditamount\":\"\",\n" +
                                    "                    \"debitamount\":\"" + yajins + "\",\n" +
                                    "                    \"explanation\":\"宿舍押金\",\n" +
                                    "                    \"localcreditamount\":\"\",\n" +
                                    "                    \"localdebitamount\":\"\",\n" +
                                    "                    \"pk_accsubj\":\"16040401\",\n" +
                                    "                    \"pk_currtype\":\"CNY\"\n" +
                                    "                }," +
                                    "{\n" +
                                    //贷方辅助核算
                                    "\t\t\t\t\"ass\":[\n" +
                                    "                        {\n" +
                                    "                            \"checktypecode\":\"2\",\n" +
                                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                    "                        },\n" +
                                    "\t\t\t\t\t\t{\n" +
                                    "                            \"checktypecode\":\"96\",\n" +
                                    "                             \"checkvaluecode\":" + yhk + "\n" +
                                    "                        }\n" +
                                    "                    ],\n" +
                                    //贷方科目
                                    "                    \"creditamount\":\"" + yajins + "\",\n" +
                                    "                    \"creditquantity\":\"\",\n" +
                                    "                    \"debitamount\":\"\",\n" +
                                    "                    \"debitquantity\":\"\",\n" +
                                    "                    \"detailindex\":\"\",\n" +
                                    "                    \"excrate1\":\"\",\n" +
                                    "                    \"explanation\":\"宿舍押金\",\n" +
                                    "                    \"localcreditamount\":\"\",\n" +
                                    "                    \"localdebitamount\":\"\",\n" +
                                    "                    \"pk_accsubj\":\"100206\",\n" +
                                    "                    \"pk_currtype\":\"CNY\",\n" +
                                    "                    \"price\":\"\"\n" +
                                    "                },\n");
                        }

                    }
                    if (km.equals("宿舍押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600006\"\n" + //宿舍押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("仓库押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600015\"\n" + //仓库押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("装修保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500042\"\n" + //装修保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("pos押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600058\"\n" + //pos押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.contains("租金保证金+")) {
                        int count = DateUtil.appearNumber(km, "\\+");
                        yajin = s.substring(km.length() - count);
                        String amounts[] = yajin.split("\\+");
                        for (String amount1 : amounts) {
                            yajins = yajins.add(new BigDecimal(amount1).setScale(2, BigDecimal.ROUND_HALF_UP));
                        }
                        if (yajins.compareTo(BigDecimal.ZERO) == 1) {
                            sb.append("                {\n" +
                                    "                    \"ass\":[\n" +
                                    "                        {\n" +
                                    "                            \"checktypecode\":\"2\",\n" +
                                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                    "                        },\n" +
                                    "                        {\n" +
                                    "                            \"checktypecode\":\"73\",\n" +
                                    "                            \"checkvaluecode\":\"0500043\"\n" + //租金保证金辅助核算编码
                                    "                        }\n" +
                                    "                    ],\n" +
                                    //借方科目
                                    "                    \"creditamount\":\"\",\n" +
                                    "                    \"debitamount\":\"" + yajins + "\",\n" +
                                    "                    \"explanation\":\"租金保证金\",\n" +
                                    "                    \"localcreditamount\":\"\",\n" +
                                    "                    \"localdebitamount\":\"\",\n" +
                                    "                    \"pk_accsubj\":\"16040403\",\n" +
                                    "                    \"pk_currtype\":\"CNY\"\n" +
                                    "                }," +
                                    "{\n" +
                                    //贷方辅助核算
                                    "\t\t\t\t\"ass\":[\n" +
                                    "                        {\n" +
                                    "                            \"checktypecode\":\"2\",\n" +
                                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                    "                        },\n" +
                                    "\t\t\t\t\t\t{\n" +
                                    "                            \"checktypecode\":\"96\",\n" +
                                    "                             \"checkvaluecode\":" + yhk + "\n" +
                                    "                        }\n" +
                                    "                    ],\n" +
                                    //贷方科目
                                    "                    \"creditamount\":\"" + yajins + "\",\n" +
                                    "                    \"creditquantity\":\"\",\n" +
                                    "                    \"debitamount\":\"\",\n" +
                                    "                    \"debitquantity\":\"\",\n" +
                                    "                    \"detailindex\":\"\",\n" +
                                    "                    \"excrate1\":\"\",\n" +
                                    "                    \"explanation\":\"租金保证金\",\n" +
                                    "                    \"localcreditamount\":\"\",\n" +
                                    "                    \"localdebitamount\":\"\",\n" +
                                    "                    \"pk_accsubj\":\"100206\",\n" +
                                    "                    \"pk_currtype\":\"CNY\",\n" +
                                    "                    \"price\":\"\"\n" +
                                    "                },\n");
                        }

                    }
                    if (km.equals("租金保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500043\"\n" + //租金保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("公共事业保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500024\"\n" + //公共事业保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("质保金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500014\"\n" + //质保金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("物业保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500008\"\n" + //物业质保金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("侧旗保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500002\"\n" + //侧旗保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("房租物业押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600064\"\n" + //房租物业押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("出入证押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600002\"\n" + //出入证押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("可乐机押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600029\"\n" + //可乐机押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("仓库保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500001\"\n" + //仓库保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("广告保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500026\"\n" + //广告保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("垃圾桶押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600030\"\n" + //垃圾桶押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("水桶押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600051\"\n" + //水桶押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("吊幔保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500023\"\n" + //吊幔保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("服务合同押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600065\"\n" + //服务合同押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("公共事业费押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600067\"\n" + //公共事业费押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("冠名车位展览押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600068\"\n" + //冠名车位展览押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("广告宣传连廊押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600071\"\n" + //广告宣传连廊押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("门头恢复保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500033\"\n" + //门头恢复保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("进场保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500029\"\n" + //进场保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("预付卡保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500040\"\n" + //预付卡保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("经营保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500030\"\n" + //经营保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("广告位押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600027\"\n" + //广告位押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("公户预存款") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500019\"\n" + //公户预存款辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("水电押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600082\"\n" + //水电押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("CRM保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500018\"\n" + //CRM保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("气瓶押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600004\"\n" + //气瓶押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("半天妖保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500019\"\n" + //半天妖保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("电卡押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600063\"\n" + //电卡押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("宽带押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600074\"\n" + //宽带押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("消防押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600086\"\n" + //消防押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("垃圾清运押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600075\"\n" + //垃圾清运押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("设备保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500036\"\n" + //设备保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("商场恢复保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500035\"\n" + //商场恢复保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("数据盒子押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600081\"\n" + //数据盒子押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("拆除押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600060\"\n" + //拆除押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("开业保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500031\"\n" + //开业保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("设柜保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500037\"\n" + //设柜保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("外摆押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600085\"\n" + //外摆押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("管控表押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600069\"\n" + //管控表押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("能耗保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500034\"\n" + //能耗保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("物管费保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500038\"\n" + //物管费保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("电表押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600062\"\n" + //电表押金金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("合作保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500027\"\n" + //合作保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("储值卡保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500015\"\n" + //储值卡保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("工牌押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600023\"\n" + //工牌押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("PAD押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600057\"\n" + //PAD押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("商户手册押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600079\"\n" + //商户手册押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("会议室押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600072\"\n" + //会议室押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("能源押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600077\"\n" + //能源押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("施工证押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600080\"\n" + //施工证押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("结算保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500028\"\n" + //结算保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("质量保证金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0500014\"\n" + //质量保证金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040403\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                    if (km.equals("销售采集系统押金") && amount.compareTo(BigDecimal.ZERO) == 1) {
                        sb.append("                {\n" +
                                "                    \"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"73\",\n" +
                                "                            \"checkvaluecode\":\"0600058\"\n" + //销售采集系统押金辅助核算编码
                                "                        }\n" +
                                "                    ],\n" +
                                //借方科目
                                "                    \"creditamount\":\"\",\n" +
                                "                    \"debitamount\":\"" + amount + "\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"16040401\",\n" +
                                "                    \"pk_currtype\":\"CNY\"\n" +
                                "                }," +
                                "{\n" +
                                //贷方辅助核算
                                "\t\t\t\t\"ass\":[\n" +
                                "                        {\n" +
                                "                            \"checktypecode\":\"2\",\n" +
                                "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                "                        },\n" +
                                "\t\t\t\t\t\t{\n" +
                                "                            \"checktypecode\":\"96\",\n" +
                                "                             \"checkvaluecode\":" + yhk + "\n" +
                                "                        }\n" +
                                "                    ],\n" +
                                //贷方科目
                                "                    \"creditamount\":\"" + amount + "\",\n" +
                                "                    \"creditquantity\":\"\",\n" +
                                "                    \"debitamount\":\"\",\n" +
                                "                    \"debitquantity\":\"\",\n" +
                                "                    \"detailindex\":\"\",\n" +
                                "                    \"excrate1\":\"\",\n" +
                                "                    \"explanation\":\"" + km + "\",\n" +
                                "                    \"localcreditamount\":\"\",\n" +
                                "                    \"localdebitamount\":\"\",\n" +
                                "                    \"pk_accsubj\":\"100206\",\n" +
                                "                    \"pk_currtype\":\"CNY\",\n" +
                                "                    \"price\":\"\"\n" +
                                "                },\n");
                    }
                }
            }


        }
        //店长备用金凭证
        if (dzbyj.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" + //首次装新费辅助核算编码
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + dzbyj + "\",\n" +
                    "                    \"explanation\":\"店长备用金\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040404\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + dzbyj + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"店长备用金\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");

        }
        //配送周转金凭证
        if (pszzj.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + pszzj + "\",\n" +
                    "                    \"explanation\":\"配送周转金\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040405\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + pszzj + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"配送周转金\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");

        }
//        //意向金凭证金额都是0，暂时用不到
//        if(yxj.compareTo(BigDecimal.ZERO)==1){
//            sb.append("                {\n" +
//                    "                    \"ass\":[\n" +
//                    "                        {\n" +
//                    "                            \"checktypecode\":\"2\",\n" +
//                    "                            \"checkvaluecode\":'"+yaoma+"'\n" +
//                    "                        },\n" +
//                    "                        {\n" +
//                    "                            \"checktypecode\":\"73\",\n" +
//                    "                            \"checkvaluecode\":\"9900032\"\n" +
//                    "                        }\n" +
//                    "                    ],\n" +
//                    //借方科目
//                    "                    \"creditamount\":\"\",\n" +
//                    "                    \"debitamount\":\""+yxj+"\",\n" +
//                    "                    \"explanation\":\"意向金\",\n" +
//                    "                    \"localcreditamount\":\"\",\n" +
//                    "                    \"localdebitamount\":\"\",\n" +
//                    "                    \"pk_accsubj\":\"16040402\",\n" +
//                    "                    \"pk_currtype\":\"CNY\"\n" +
//                    "                }," +
//                    "{\n" +
//                    //贷方辅助核算
//                    "\t\t\t\t\"ass\":[\n" +
//                    "                        {\n" +
//                    "                            \"checktypecode\":\"2\",\n" +
//                    "                            \"checkvaluecode\":'"+yaoma+"'\n" +
//                    "                        },\n" +
//                    "\t\t\t\t\t\t{\n" +
//                    "                            \"checktypecode\":\"96\",\n" +
//                    "                             \"checkvaluecode\":"+yhk+"\n" +
//                    "                        }\n" +
//                    "                    ],\n" +
//                    //贷方科目
//                    "                    \"creditamount\":\""+yxj+"\",\n" +
//                    "                    \"creditquantity\":\"\",\n" +
//                    "                    \"debitamount\":\"\",\n" +
//                    "                    \"debitquantity\":\"\",\n" +
//                    "                    \"detailindex\":\"\",\n" +
//                    "                    \"excrate1\":\"\",\n" +
//                    "                    \"explanation\":\"意向金\",\n" +
//                    "                    \"localcreditamount\":\"\",\n" +
//                    "                    \"localdebitamount\":\"\",\n" +
//                    "                    \"pk_accsubj\":\"100206\",\n" +
//                    "                    \"pk_currtype\":\"CNY\",\n" +
//                    "                    \"price\":\"\"\n" +
//                    "                },\n");
//        }
//        //前厅耗品凭证
        if (qthp.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + qthp + "\",\n" +
                    "                    \"explanation\":\"前厅耗品\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040109\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + qthp + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"前厅耗品\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //厨房用品凭证
        if (cfyp.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + cfyp + "\",\n" +
                    "                    \"explanation\":\"厨房用品\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040109\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + cfyp + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"厨房用品\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");

        }
        //办公设备凭证
        if (bgsb.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + bgsb + "\",\n" +
                    "                    \"explanation\":\"办公设备\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040109\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + bgsb + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"办公设备\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //电器设备凭证
        if (dqsb.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
//                    "                       {\n" +
//                    "                            \"checktypecode\":\"73\",\n" +
//                    "                            \"checkvaluecode\":\"9900032\"\n" +
//                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + dqsb + "\",\n" +
                    "                    \"explanation\":\"电器设备\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040109\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + dqsb + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"电器设备\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");

        }
        //厨具设备凭证
        if (cjsb.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                       {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" +
                    "                        }\n" +

                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + cjsb + "\",\n" +
                    "                    \"explanation\":\"厨具设备\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040306\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + cjsb + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"厨具设备\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //空调凭证
        if (kt.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                       {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" + //首次装修费辅助核算编码
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + kt + "\",\n" +
                    "                    \"explanation\":\"空调\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040202\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + kt + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"空调\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");

        }
        //大厅设备凭证
        if (dtsb.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                       {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + dtsb + "\",\n" +
                    "                    \"explanation\":\"大厅设备\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040307\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + dtsb + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"大厅设备\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //设计费凭证
        if (sjf.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                       {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + sjf + "\",\n" +
                    "                    \"explanation\":\"设计费\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040301\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + sjf + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"设计费\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //转让费凭证
        if (zrf.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + zrf + "\",\n" +
                    "                    \"explanation\":\"转让费\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040109\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + zrf + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"转让费\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //装修费凭证
        if (zxf.compareTo(BigDecimal.ZERO) == 1) {
            /**
             * 大于两万做装修押金 ，小于两万做装修费
             */
            Pattern p = Pattern.compile("([1-9]\\d*\\.?\\d*)|(0\\.\\d*[1-9])");
            BigDecimal yajins = BigDecimal.ZERO;
            if (zxf1.contains("装修押金") | zxf1.contains("装修保证金")) {
                if (ToolUtil.isNotEmpty(zxf1s)) {
                    for (String s : zxf1s) {
                        Matcher m = p.matcher(s);
                        String km = m.replaceAll("").trim();
                        String yajin = s.substring(km.length());
                        if (km.contains("装修押金+") | km.contains("装修保证金+")) {
                            int count = DateUtil.appearNumber(km, "\\+");
                            yajin = s.substring(km.length() - count);
                            String amounts[] = yajin.split("\\+");
                            for (String amount1 : amounts) {
                                yajins = yajins.add(new BigDecimal(amount1).setScale(2, BigDecimal.ROUND_HALF_UP));
                            }
                            if (yajins.compareTo(new BigDecimal(20000)) == 1) {
                                sb.append("                {\n" +
                                        "                    \"ass\":[\n" +
                                        "                        {\n" +
                                        "                            \"checktypecode\":\"2\",\n" +
                                        "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                        "                        },\n" +
                                        "                       {\n" +
                                        "                            \"checktypecode\":\"73\",\n" +
                                        "                            \"checkvaluecode\":\"0600056\"\n" +//装修押金辅助核算编码
                                        "                        }\n" +
                                        "                    ],\n" +
                                        //借方科目
                                        "                    \"creditamount\":\"\",\n" +
                                        "                    \"debitamount\":\"" + yajins + "\",\n" +
                                        "                    \"explanation\":\"装修押金\",\n" +
                                        "                    \"localcreditamount\":\"\",\n" +
                                        "                    \"localdebitamount\":\"\",\n" +
                                        "                    \"pk_accsubj\":\"16040401\",\n" +
                                        "                    \"pk_currtype\":\"CNY\"\n" +
                                        "                }," +
                                        "{\n" +
                                        //贷方辅助核算
                                        "\t\t\t\t\"ass\":[\n" +
                                        "                        {\n" +
                                        "                            \"checktypecode\":\"2\",\n" +
                                        "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                        "                        },\n" +
                                        "\t\t\t\t\t\t{\n" +
                                        "                            \"checktypecode\":\"96\",\n" +
                                        "                             \"checkvaluecode\":" + yhk + "\n" +
                                        "                        }\n" +
                                        "                    ],\n" +
                                        //贷方科目
                                        "                    \"creditamount\":\"" + yajins + "\",\n" +
                                        "                    \"creditquantity\":\"\",\n" +
                                        "                    \"debitamount\":\"\",\n" +
                                        "                    \"debitquantity\":\"\",\n" +
                                        "                    \"detailindex\":\"\",\n" +
                                        "                    \"excrate1\":\"\",\n" +
                                        "                    \"explanation\":\"装修押金\",\n" +
                                        "                    \"localcreditamount\":\"\",\n" +
                                        "                    \"localdebitamount\":\"\",\n" +
                                        "                    \"pk_accsubj\":\"100206\",\n" +
                                        "                    \"pk_currtype\":\"CNY\",\n" +
                                        "                    \"price\":\"\"\n" +
                                        "                },\n");

                                BigDecimal otherAmount = zxf.subtract(yajins);
                                if (otherAmount.compareTo(BigDecimal.ZERO) == 1) {
                                    sb.append("                {\n" +
                                            "                    \"ass\":[\n" +
                                            "                        {\n" +
                                            "                            \"checktypecode\":\"2\",\n" +
                                            "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                            "                        },\n" +
                                            "                       {\n" +
                                            "                            \"checktypecode\":\"73\",\n" +
                                            "                            \"checkvaluecode\":\"0600056\"\n" +//装修押金辅助核算编码
                                            "                        }\n" +
                                            "                    ],\n" +
                                            //借方科目
                                            "                    \"creditamount\":\"\",\n" +
                                            "                    \"debitamount\":\"" + otherAmount + "\",\n" +
                                            "                    \"explanation\":\"装修费\",\n" +
                                            "                    \"localcreditamount\":\"\",\n" +
                                            "                    \"localdebitamount\":\"\",\n" +
                                            "                    \"pk_accsubj\":\"16040302\",\n" +
                                            "                    \"pk_currtype\":\"CNY\"\n" +
                                            "                }," +
                                            "{\n" +
                                            //贷方辅助核算
                                            "\t\t\t\t\"ass\":[\n" +
                                            "                        {\n" +
                                            "                            \"checktypecode\":\"2\",\n" +
                                            "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                            "                        },\n" +
                                            "\t\t\t\t\t\t{\n" +
                                            "                            \"checktypecode\":\"96\",\n" +
                                            "                             \"checkvaluecode\":" + yhk + "\n" +
                                            "                        }\n" +
                                            "                    ],\n" +
                                            //贷方科目
                                            "                    \"creditamount\":\"" + otherAmount + "\",\n" +
                                            "                    \"creditquantity\":\"\",\n" +
                                            "                    \"debitamount\":\"\",\n" +
                                            "                    \"debitquantity\":\"\",\n" +
                                            "                    \"detailindex\":\"\",\n" +
                                            "                    \"excrate1\":\"\",\n" +
                                            "                    \"explanation\":\"装修费\",\n" +
                                            "                    \"localcreditamount\":\"\",\n" +
                                            "                    \"localdebitamount\":\"\",\n" +
                                            "                    \"pk_accsubj\":\"100206\",\n" +
                                            "                    \"pk_currtype\":\"CNY\",\n" +
                                            "                    \"price\":\"\"\n" +
                                            "                },\n");
                                }
                            }

                        } else if (!yajin.contains("+") && km.equals("装修押金") | km.equals("装修保证金")) {
                            //System.out.println("yajin222:"+yajin);
                            BigDecimal amount = new BigDecimal(yajin).setScale(2, BigDecimal.ROUND_HALF_UP);
                            if ((km.equals("装修押金") | km.equals("装修保证金") && amount.compareTo(new BigDecimal(20000)) == 1)) {
                                sb.append("                {\n" +
                                        "                    \"ass\":[\n" +
                                        "                        {\n" +
                                        "                            \"checktypecode\":\"2\",\n" +
                                        "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                        "                        },\n" +
                                        "                       {\n" +
                                        "                            \"checktypecode\":\"73\",\n" +
                                        "                            \"checkvaluecode\":\"0600056\"\n" +//装修押金辅助核算编码
                                        "                        }\n" +
                                        "                    ],\n" +
                                        //借方科目
                                        "                    \"creditamount\":\"\",\n" +
                                        "                    \"debitamount\":\"" + amount + "\",\n" +
                                        "                    \"explanation\":\"装修押金\",\n" +
                                        "                    \"localcreditamount\":\"\",\n" +
                                        "                    \"localdebitamount\":\"\",\n" +
                                        "                    \"pk_accsubj\":\"16040401\",\n" +
                                        "                    \"pk_currtype\":\"CNY\"\n" +
                                        "                }," +
                                        "{\n" +
                                        //贷方辅助核算
                                        "\t\t\t\t\"ass\":[\n" +
                                        "                        {\n" +
                                        "                            \"checktypecode\":\"2\",\n" +
                                        "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                        "                        },\n" +
                                        "\t\t\t\t\t\t{\n" +
                                        "                            \"checktypecode\":\"96\",\n" +
                                        "                             \"checkvaluecode\":" + yhk + "\n" +
                                        "                        }\n" +
                                        "                    ],\n" +
                                        //贷方科目
                                        "                    \"creditamount\":\"" + amount + "\",\n" +
                                        "                    \"creditquantity\":\"\",\n" +
                                        "                    \"debitamount\":\"\",\n" +
                                        "                    \"debitquantity\":\"\",\n" +
                                        "                    \"detailindex\":\"\",\n" +
                                        "                    \"excrate1\":\"\",\n" +
                                        "                    \"explanation\":\"装修押金\",\n" +
                                        "                    \"localcreditamount\":\"\",\n" +
                                        "                    \"localdebitamount\":\"\",\n" +
                                        "                    \"pk_accsubj\":\"100206\",\n" +
                                        "                    \"pk_currtype\":\"CNY\",\n" +
                                        "                    \"price\":\"\"\n" +
                                        "                },\n");

                                BigDecimal otherAmount = zxf.subtract(amount);
                                if (otherAmount.compareTo(BigDecimal.ZERO) == 1) {
                                    sb.append("                {\n" +
                                            "                    \"ass\":[\n" +
                                            "                        {\n" +
                                            "                            \"checktypecode\":\"2\",\n" +
                                            "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                            "                        },\n" +
                                            "                       {\n" +
                                            "                            \"checktypecode\":\"73\",\n" +
                                            "                            \"checkvaluecode\":\"9900032\"\n" +//首次装修费辅助核算编码
                                            "                        }\n" +
                                            "                    ],\n" +
                                            //借方科目
                                            "                    \"creditamount\":\"\",\n" +
                                            "                    \"debitamount\":\"" + otherAmount + "\",\n" +
                                            "                    \"explanation\":\"装修费\",\n" +
                                            "                    \"localcreditamount\":\"\",\n" +
                                            "                    \"localdebitamount\":\"\",\n" +
                                            "                    \"pk_accsubj\":\"16040302\",\n" +
                                            "                    \"pk_currtype\":\"CNY\"\n" +
                                            "                }," +
                                            "{\n" +
                                            //贷方辅助核算
                                            "\t\t\t\t\"ass\":[\n" +
                                            "                        {\n" +
                                            "                            \"checktypecode\":\"2\",\n" +
                                            "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                            "                        },\n" +
                                            "\t\t\t\t\t\t{\n" +
                                            "                            \"checktypecode\":\"96\",\n" +
                                            "                             \"checkvaluecode\":" + yhk + "\n" +
                                            "                        }\n" +
                                            "                    ],\n" +
                                            //贷方科目
                                            "                    \"creditamount\":\"" + otherAmount + "\",\n" +
                                            "                    \"creditquantity\":\"\",\n" +
                                            "                    \"debitamount\":\"\",\n" +
                                            "                    \"debitquantity\":\"\",\n" +
                                            "                    \"detailindex\":\"\",\n" +
                                            "                    \"excrate1\":\"\",\n" +
                                            "                    \"explanation\":\"装修费\",\n" +
                                            "                    \"localcreditamount\":\"\",\n" +
                                            "                    \"localdebitamount\":\"\",\n" +
                                            "                    \"pk_accsubj\":\"100206\",\n" +
                                            "                    \"pk_currtype\":\"CNY\",\n" +
                                            "                    \"price\":\"\"\n" +
                                            "                },\n");
                                }
                            } else {
                                sb.append("                {\n" +
                                        "                    \"ass\":[\n" +
                                        "                        {\n" +
                                        "                            \"checktypecode\":\"2\",\n" +
                                        "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                        "                        },\n" +
                                        "                       {\n" +
                                        "                            \"checktypecode\":\"73\",\n" +
                                        "                            \"checkvaluecode\":\"9900032\"\n" +
                                        "                        }\n" +
                                        "                    ],\n" +
                                        //借方科目
                                        "                    \"creditamount\":\"\",\n" +
                                        "                    \"debitamount\":\"" + zxf + "\",\n" +
                                        "                    \"explanation\":\"装修费\",\n" +
                                        "                    \"localcreditamount\":\"\",\n" +
                                        "                    \"localdebitamount\":\"\",\n" +
                                        "                    \"pk_accsubj\":\"16040302\",\n" +
                                        "                    \"pk_currtype\":\"CNY\"\n" +
                                        "                }," +
                                        "{\n" +
                                        //贷方辅助核算
                                        "\t\t\t\t\"ass\":[\n" +
                                        "                        {\n" +
                                        "                            \"checktypecode\":\"2\",\n" +
                                        "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                                        "                        },\n" +
                                        "\t\t\t\t\t\t{\n" +
                                        "                            \"checktypecode\":\"96\",\n" +
                                        "                             \"checkvaluecode\":" + yhk + "\n" +
                                        "                        }\n" +
                                        "                    ],\n" +
                                        //贷方科目
                                        "                    \"creditamount\":\"" + zxf + "\",\n" +
                                        "                    \"creditquantity\":\"\",\n" +
                                        "                    \"debitamount\":\"\",\n" +
                                        "                    \"debitquantity\":\"\",\n" +
                                        "                    \"detailindex\":\"\",\n" +
                                        "                    \"excrate1\":\"\",\n" +
                                        "                    \"explanation\":\"装修费\",\n" +
                                        "                    \"localcreditamount\":\"\",\n" +
                                        "                    \"localdebitamount\":\"\",\n" +
                                        "                    \"pk_accsubj\":\"100206\",\n" +
                                        "                    \"pk_currtype\":\"CNY\",\n" +
                                        "                    \"price\":\"\"\n" +
                                        "                },\n");
                            }


                        }

                    }
                }
            } else {
                sb.append("                {\n" +
                        "                    \"ass\":[\n" +
                        "                        {\n" +
                        "                            \"checktypecode\":\"2\",\n" +
                        "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                        "                        },\n" +
                        "                       {\n" +
                        "                            \"checktypecode\":\"73\",\n" +
                        "                            \"checkvaluecode\":\"9900032\"\n" +
                        "                        }\n" +
                        "                    ],\n" +
                        //借方科目
                        "                    \"creditamount\":\"\",\n" +
                        "                    \"debitamount\":\"" + zxf + "\",\n" +
                        "                    \"explanation\":\"装修费\",\n" +
                        "                    \"localcreditamount\":\"\",\n" +
                        "                    \"localdebitamount\":\"\",\n" +
                        "                    \"pk_accsubj\":\"16040302\",\n" +
                        "                    \"pk_currtype\":\"CNY\"\n" +
                        "                }," +
                        "{\n" +
                        //贷方辅助核算
                        "\t\t\t\t\"ass\":[\n" +
                        "                        {\n" +
                        "                            \"checktypecode\":\"2\",\n" +
                        "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                        "                        },\n" +
                        "\t\t\t\t\t\t{\n" +
                        "                            \"checktypecode\":\"96\",\n" +
                        "                             \"checkvaluecode\":" + yhk + "\n" +
                        "                        }\n" +
                        "                    ],\n" +
                        //贷方科目
                        "                    \"creditamount\":\"" + zxf + "\",\n" +
                        "                    \"creditquantity\":\"\",\n" +
                        "                    \"debitamount\":\"\",\n" +
                        "                    \"debitquantity\":\"\",\n" +
                        "                    \"detailindex\":\"\",\n" +
                        "                    \"excrate1\":\"\",\n" +
                        "                    \"explanation\":\"装修费\",\n" +
                        "                    \"localcreditamount\":\"\",\n" +
                        "                    \"localdebitamount\":\"\",\n" +
                        "                    \"pk_accsubj\":\"100206\",\n" +
                        "                    \"pk_currtype\":\"CNY\",\n" +
                        "                    \"price\":\"\"\n" +
                        "                },\n");
            }

        }
        //拆除费凭证
        if (cc.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + cc + "\",\n" +
                    "                    \"explanation\":\"拆除费\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040304\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + cc + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"拆除费\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //消防水改造电缆凭证
        if (xfdl.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                       {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + xfdl + "\",\n" +
                    "                    \"explanation\":\"消防水改造电缆\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040302\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + xfdl + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"消防水改造电缆\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //消防凭证
        if (xf.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + xf + "\",\n" +
                    "                    \"explanation\":\"消防\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040303\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + xf + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"消防\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");

        }
        //弱电凭证
        if (rd.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + rd + "\",\n" +
                    "                    \"explanation\":\"弱电\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040302\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + rd + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"弱电\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //电缆凭证
        if (dl.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + dl + "\",\n" +
                    "                    \"explanation\":\"电缆\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040302\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + dl + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"电缆\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //二消费用凭证
        if (exfy.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + exfy + "\",\n" +
                    "                    \"explanation\":\"二消费用\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040303\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + exfy + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"二消费用\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //发光字凭证
        if (fgz.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                       {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + fgz + "\",\n" +
                    "                    \"explanation\":\"发光字\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040302\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + fgz + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"发光字\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //二次消防凭证
        if (ecxf.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + ecxf + "\",\n" +
                    "                    \"explanation\":\"二次消防\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040303\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + ecxf + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"二次消防\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //拆除+围挡凭证
        if (chaichu.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + chaichu + "\",\n" +
                    "                    \"explanation\":\"拆除围挡\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040304\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + ecxf + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"拆除围挡\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //消防改造凭证
        if (xfgz.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + xfgz + "\",\n" +
                    "                    \"explanation\":\"消防改造\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040303\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + xfgz + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"消防改造\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //工程改造凭证
        if (gcgz.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"73\",\n" +
                    "                            \"checkvaluecode\":\"9900032\"\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + gcgz + "\",\n" +
                    "                    \"explanation\":\"工程改造\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040302\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + gcgz + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"工程改造\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //房租凭证
        if (fz.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + fz + "\",\n" +
                    "                    \"explanation\":\"房租\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040101\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + fz + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"房租\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //工资凭证
        if (gz.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + gz + "\",\n" +
                    "                    \"explanation\":\"工资\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040103\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + gz + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"工资\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");

        }
        //电费凭证
        if (df.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + df + "\",\n" +
                    "                    \"explanation\":\"电费\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040105\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + df + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"电费\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");

        }
        //水费凭证
        if (sf.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + sf + "\",\n" +
                    "                    \"explanation\":\"水费\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040105\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + sf + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"水费\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //宿舍房租及用品凭证
        if (ssfz.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + ssfz + "\",\n" +
                    "                    \"explanation\":\"宿舍房租及用品\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040104\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + ssfz + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"宿舍房租及用品\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");

        }
        //员工餐凭证
        if (ygc.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + ygc + "\",\n" +
                    "                    \"explanation\":\"员工餐\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040104\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + ygc + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"员工餐\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");

        }
        //配送进货凭证不生了
//        if(psjh.compareTo(BigDecimal.ZERO)==1){
//            sb.append("                {\n" +
//                    "                    \"ass\":[\n" +
//                    "                        {\n" +
//                    "                            \"checktypecode\":\"2\",\n" +
//                    "                            \"checkvaluecode\":'"+yaoma+"'\n" +
//                    "                        }\n" +
//                    "                    ],\n" +
//                    //借方科目
//                    "                    \"creditamount\":\"\",\n" +
//                    "                    \"debitamount\":\""+psjh+"\",\n" +
//                    "                    \"explanation\":\"配送进货\",\n" +
//                    "                    \"localcreditamount\":\"\",\n" +
//                    "                    \"localdebitamount\":\"\",\n" +
//                    "                    \"pk_accsubj\":\"16040109\",\n" +
//                    "                    \"pk_currtype\":\"CNY\"\n" +
//                    "                }," +
//                    "{\n" +
//                    //贷方辅助核算
//                    "\t\t\t\t\"ass\":[\n" +
//                    "                        {\n" +
//                    "                            \"checktypecode\":\"2\",\n" +
//                    "                            \"checkvaluecode\":'"+yaoma+"'\n" +
//                    "                        },\n" +
//                    "\t\t\t\t\t\t{\n" +
//                    "                            \"checktypecode\":\"96\",\n" +
//                    "                             \"checkvaluecode\":"+yhk+"\n" +
//                    "                        }\n" +
//                    "                    ],\n" +
//                    //贷方科目
//                    "                    \"creditamount\":\""+psjh+"\",\n" +
//                    "                    \"creditquantity\":\"\",\n" +
//                    "                    \"debitamount\":\"\",\n" +
//                    "                    \"debitquantity\":\"\",\n" +
//                    "                    \"detailindex\":\"\",\n" +
//                    "                    \"excrate1\":\"\",\n" +
//                    "                    \"explanation\":\"配送进货\",\n" +
//                    "                    \"localcreditamount\":\"\",\n" +
//                    "                    \"localdebitamount\":\"\",\n" +
//                    "                    \"pk_accsubj\":\"100206\",\n" +
//                    "                    \"pk_currtype\":\"CNY\",\n" +
//                    "                    \"price\":\"\"\n" +
//                    "                },\n");
//
//        }
        //拓展费用凭证
        if (tzfy.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + tzfy + "\",\n" +
                    "                    \"explanation\":\"拓展费用\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040107\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + tzfy + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"拓展费用\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");

        }
        //工作服/围裙/帽子凭证
        if (gzf.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + gzf + "\",\n" +
                    "                    \"explanation\":\"工作服\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040104\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + gzf + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"工作服\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //零星用品凭证
        if (lxyp.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + lxyp + "\",\n" +
                    "                    \"explanation\":\"零星用品\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040109\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + lxyp + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"零星用品\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //搬运费/运费凭证
        if (byf.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + byf + "\",\n" +
                    "                    \"explanation\":\"搬运费\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040109\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + byf + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"搬运费\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //宽带款凭证
        if (kdk.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + kdk + "\",\n" +
                    "                    \"explanation\":\"宽带款\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040109\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + kdk + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"宽带款\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");

        }
        //差旅费凭证
        if (clf.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + clf + "\",\n" +
                    "                    \"explanation\":\"差旅费\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040110\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + clf + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"差旅费\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //试菜费用凭证
        if (scfy.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + scfy + "\",\n" +
                    "                    \"explanation\":\"试菜费用\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040109\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + scfy + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"试菜费用\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //车费凭证
        if (cf.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + cf + "\",\n" +
                    "                    \"explanation\":\"车费\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040110\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + cf + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"车费\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");
        }
        //其他费用凭证
        if (qtfy.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + qtfy + "\",\n" +
                    "                    \"explanation\":\"其他费用\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040111\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + qtfy + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"其他费用\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");

        }
        //排烟管道铺设凭证
        if (pygd.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + pygd + "\",\n" +
                    "                    \"explanation\":\"排烟管道铺设\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040111\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + pygd + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"排烟管道铺设\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                },\n");

        }
        //广告单、喷绘、等凭证
        if (ggd.compareTo(BigDecimal.ZERO) == 1) {
            sb.append("                {\n" +
                    "                    \"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //借方科目
                    "                    \"creditamount\":\"\",\n" +
                    "                    \"debitamount\":\"" + ggd + "\",\n" +
                    "                    \"explanation\":\"广告单\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"16040108\",\n" +
                    "                    \"pk_currtype\":\"CNY\"\n" +
                    "                }," +
                    "{\n" +
                    //贷方辅助核算
                    "\t\t\t\t\"ass\":[\n" +
                    "                        {\n" +
                    "                            \"checktypecode\":\"2\",\n" +
                    "                            \"checkvaluecode\":'" + yaoma + "'\n" +
                    "                        },\n" +
                    "\t\t\t\t\t\t{\n" +
                    "                            \"checktypecode\":\"96\",\n" +
                    "                             \"checkvaluecode\":" + yhk + "\n" +
                    "                        }\n" +
                    "                    ],\n" +
                    //贷方科目
                    "                    \"creditamount\":\"" + ggd + "\",\n" +
                    "                    \"creditquantity\":\"\",\n" +
                    "                    \"debitamount\":\"\",\n" +
                    "                    \"debitquantity\":\"\",\n" +
                    "                    \"detailindex\":\"\",\n" +
                    "                    \"excrate1\":\"\",\n" +
                    "                    \"explanation\":\"广告单\",\n" +
                    "                    \"localcreditamount\":\"\",\n" +
                    "                    \"localdebitamount\":\"\",\n" +
                    "                    \"pk_accsubj\":\"100206\",\n" +
                    "                    \"pk_currtype\":\"CNY\",\n" +
                    "                    \"price\":\"\"\n" +
                    "                }\n");
        }
        sb.append("            ],\n" +
                "            \"pk_corp\":" + param.getRegion() + ",\n" +
                "            \"pk_glorgbook\":\"" + param.getRegion() + "-bty01\",\n" +
                "            \"pk_prepared\":\"15253172037\",\n" +
                "            \"pk_vouchertype\":\"记账\",\n" +
                "            \"prepareddate\":" + zdrq + "\n" +
                "        }\n" +
                "    ]\n" +
                "}");
        System.out.println("sb:"+sb);
        HttpEntity<String> formEntity = new HttpEntity<String>(sb.toString(), headers);
        String url = "http://124.70.28.147:8089/u8cloud/api/gl/voucher/insert";
        String result = restTemplate.postForEntity(url, formEntity, String.class).getBody();
        System.out.println("result:"+result);
        JsonParser jp = new JsonParser();
        //将json字符串转化成json对象
        JsonObject jo = jp.parse(result).getAsJsonObject();
        //获取errcode对应的值
        String status = jo.get("status").getAsString();

        if (status.equals("falied")) {
            String errormsg = jo.get("errormsg").getAsString();
            return ResponseData.error(501, errormsg);
        } else {
            return ResponseData.success();
        }
    }

    /**
     * 获取导出excel的数据
     *
     * @param param
     * @return
     */
    @RequestMapping("/listSearchExport")
    @ResponseBody
    public List<MdzxResult> listSearchExport(MdzxParam param) {
        List<MdzxResult> list = mdzxService.dzExportList(param);
        return list;
    }

}


